import request from '@/utils/request'

/**
 * @param 新增销售目标
 */
export function saveOrUpdateSalestarget(data) {
  return request({
    url: '/ord/bizsalestarget/saveOrUpdate',
    method: 'post',
    data
  })
}

/**
 * @param 获取销售目标列表
 */
export function getSalestargetList(data) {
  return request({
    url: '/ord/bizsalestarget/targetList',
    method: 'post',
    data
  })
}
/**
 * @param 目标删除
 */
export function delSalestarget(params) {
  return request({
    url: '/ord/bizsalestarget/delete',
    method: 'delete',
    params
  })
}
/**
 * @param 目标详情
 */
export function getTargetDeatail(data) {
  return request({
    url: '/ord/bizsalestarget/targetDeatail',
    method: 'post',
    data
  })
}
